Documentation Index
Fetch the complete documentation index at: https://superdoc-dependabot-npm_and_yarn-npm_and_yarn-e04d5d616f.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The SuperDoc API uses Bearer token authentication with API keys. All API requests must include a valid API key in theAuthorization header.
API Key Format
SuperDoc API keys follow a specific format:- Environment:
testorlive - Type:
pk(public key) orsk(secret key) - Random String: Unique identifier
Examples
- Test key:
sd_test_pk_a1b2c3d4e5f6... - Live key:
sd_live_pk_h7i8j9k0l1m2...
Authentication Methods
Bearer Token (Recommended)
Include your API key in theAuthorization header:
Test vs Production Keys
- Test Keys
- Production Keys
Test Environment (
sd_test_*) - No charges applied - Limited to 100
requests per hour - Perfect for development and testing - Automatically
routes to test environmentSecurity Best Practices
Never expose keys in client-side code
Never expose keys in client-side code
API keys should only be used in server-side applications. Never include them
in: - Frontend JavaScript - Mobile applications - Public repositories -
Client-side code
Use environment variables
Use environment variables
Store API keys in environment variables:
bash # .env file SUPERDOC_API_KEY=sd_live_pk_your_api_key javascript // Usage const apiKey = process.env.SUPERDOC_API_KEY; Rotate keys regularly
Rotate keys regularly
- Rotate production keys every 90 days - Immediately rotate if a key is compromised - Use our key rotation API for zero-downtime rotation
Restrict key permissions
Restrict key permissions
When creating API keys: - Use read-only keys when possible - Limit keys to
specific IP addresses - Set expiration dates for temporary access
Managing API Keys
Create a New Key
- Log in to dashboard.superdoc.dev
- Navigate to API Keys
- Click Create New Key
- Configure key settings:
- Name (for your reference)
- Environment (test/production)
- Permissions (if applicable)
- IP restrictions (optional)
Revoke a Key
- Go to API Keys in the dashboard
- Find the key to revoke
- Click Revoke Key
- Confirm the action
Troubleshooting
Common Authentication Errors
Possible causes: - Missing
Authorization header - Malformed API key -
Revoked or expired key Solution: - Verify the Authorization header is
present - Check key format: Bearer sd_... - Confirm key is active in
dashboardPossible causes: - IP restriction violation - Insufficient permissions -
Feature not available in your plan Solution: - Check IP whitelist settings
- Verify key permissions - Upgrade plan if needed
Next Steps
Make Your First Request
Start converting documents with your API key
Explore Endpoints
Discover all available API endpoints

